package cn.yqn.dto;

import cn.yqn.util.AssertUtil;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class PhoneRegisterDto {

    @NotEmpty(message = "请输入电话号码")
    @Pattern(regexp = AssertUtil.PHONE_CHECK, message = "电话格式错误")
    private String mobile;

    @Size(min = 6, max = 12, message = "密码格式错误")
    private String password;

    @Size(min = 6, max = 6, message = "图形验证错误")
    private String imageCode;

    @Size(min = 6, max = 6, message = "短信验证错误")
    private String smsCode;

    // 注册通道
    private Integer regChannel;

}
